import request from '@/utils/request'

// 查询帮手列表
export function listBs(query) {
    return request({
        url: '/by/bs/list',
        method: 'get',
        params: query
    })
}

// 查询帮手详细
export function getBs(id) {
    return request({
        url: '/by/bs/' + id,
        method: 'get'
    })
}

// 新增帮手
export function addBs(data) {
    return request({
        url: '/by/bs',
        method: 'post',
        data: data
    })
}

// 修改帮手
export function updateBs(data) {
    return request({
        url: '/by/bs',
        method: 'put',
        data: data
    })
}

// 删除帮手
export function delBs(id) {
    return request({
        url: '/by/bs/' + id,
        method: 'delete'
    })
}


export function mangSubjectAndBsid(data) {
    return request({
        url: '/by/bs/mangSubjectAndBsid',
        method: 'post',
        data: data
    })
}



export function imgsave(data) {
    return request({
        url: '/wx/bs/saveImg',
        method: 'post',
        data: data
    })
}


export function upBsStatus(data){
    return request({
        url: '/by/bs/upBsStatus',
        method: 'post',
        data: data
    })
}
